<?php
    //require_once "debug.php";
    require_once "models/m_content.php";

    class CContent extends MContent
    {
        function print_content($sub_menu_id = NULL, $main_menu_id = NULL)
        {
            settype($sub_menu_id, 'integer');
            settype($main_menu_id, 'integer');
            $res = $this->return_content($sub_menu_id, $main_menu_id);
            $page = mysql_fetch_assoc($res);
            return $page;
        }
    }

    $sub_menu_id = $_GET['sub_menu_id'];
    $main_menu_id = $_GET['main_menu_id'];
    if (($sub_menu_id == NULL) and ($main_menu_id == NULL))
    {
        $sub_menu_id = 1;
        $main_menu_id = 1;
    }
    $vcontent = new CContent();
    $page = $vcontent->print_content($sub_menu_id, $main_menu_id);
?>